<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/11/9
 * Time: 17:28
 */

namespace app\mall\controller;

use app\mall\model\Merchant;
use think\App;
use app\Utils\Util;
use app\admin\model\System\SysSettingModel;

class BaseController extends \app\BaseController
{
    const CODE_DATA = 0;
    const CODE_SUCCESS = 200;
    const CODE_ERROR = 400;//错误码
    const CODE_LOGIN = 1001;//登录token失效码
    protected $setting;

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->setting = SysSettingModel::getSysSettingWhere([]);
    }
}